home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 41.zip / BS1 part 41 / Devpac 2.12 disk 2.adf / include.cbm / graphics / text.i < prev    next >
Text File  |  1987-03-31  |  3KB  |  68 lines

  1.    IFND  GRAPHICS_TEXT_I
  2. GRAPHICS_TEXT_I      SET   1
  3. ********************************************************************
  4. *               Commodore-Amiga, Inc.                              *
  5. *               text.i                                             *
  6. ********************************************************************
  7. ********************************************************************
  8. *
  9. *  graphics library text structures
  10. *
  11. ********************************************************************
  12.    
  13.    IFND     EXEC_PORTS_I
  14.    INCLUDE  "exec/ports.i"
  15.    ENDC
  16.  
  17. *------ Font Styles --------------------------------------------------
  18. FS_NORMAL   EQU 0             ;normal text (no style attributes set)
  19.    BITDEF   FS,EXTENDED,3     ;extended face (must be designed)
  20.    BITDEF   FS,ITALIC,2       ;italic (slanted 1:2 right)
  21.    BITDEF   FS,BOLD,1         ;bold face text (ORed w/ shifted right 1)
  22.    BITDEF   FS,UNDERLINED,0   ;underlined (under baseline)
  23.  
  24. *------ Font Flags ---------------------------------------------------
  25.    BITDEF   FP,ROMFONT,0      ;font is in rom
  26.    BITDEF   FP,DISKFONT,1     ;font is from diskfont.library
  27.    BITDEF   FP,REVPATH,2      ;designed path is reversed (e.g. left)
  28.    BITDEF   FP,TALLDOT,3      ;designed for hires non-interlaced
  29.    BITDEF   FP,WIDEDOT,4      ;designed for lores interlaced
  30.    BITDEF   FP,PROPORTIONAL,5 ;character sizes can vary from nominal
  31.    BITDEF   FP,DESIGNED,6     ;size is "designed", not constructed
  32.    BITDEF   FP,REMOVED,7      ; the font has been removed
  33.  
  34.  
  35. ******* TextAttr node ************************************************
  36.  STRUCTURE  TextAttr,0
  37.    APTR     ta_Name           ;name of the desired font
  38.    UWORD    ta_YSize          ;size of the desired font
  39.    UBYTE    ta_Style          ;desired font style
  40.    UBYTE    ta_Flags          ;font preferences
  41.    LABEL    ta_SIZEOF
  42.  
  43.  
  44. ******* TextFont node ************************************************
  45.  STRUCTURE  TextFont,MN_SIZE
  46. *                             ;font name in LN        \ used in this
  47.    UWORD    tf_YSize          ;font height            | order to best
  48.    UBYTE    tf_Style          ;font style             | match a font
  49.    UBYTE    tf_Flags          ;preference attributes  / request.
  50.    UWORD    tf_XSize          ;nominal font width
  51.    UWORD    tf_Baseline       ;distance from the top of char to baseline
  52.    UWORD    tf_BoldSmear      ;smear to affect a bold enhancement
  53.  
  54.    UWORD    tf_Accessors      ;access count
  55.  
  56.    UBYTE    tf_LoChar         ;the first character described here
  57.    UBYTE    tf_HiChar         ;the last character described here
  58.    APTR     tf_CharData       ;the bit character data
  59.  
  60.    UWORD    tf_Modulo         ;the row modulo for the strike font data
  61.    APTR     tf_CharLoc        ;ptr to location data for the strike font
  62. *           ;  2 words: bit offset then size
  63.    APTR     tf_CharSpace      ;ptr to words of proportional spacing data
  64.    APTR     tf_CharKern       ;ptr to words of kerning data
  65.    LABEL    tf_SIZEOF
  66.  
  67.    ENDC
  68.